import {BrowserRouter, Route, Switch, Redirect} from "react-router-dom"
import Login from "./pages/login/login";
import Admin from "./pages/admin/admin";

function App() {
    return (
        <BrowserRouter>
            <Switch>
                <Route path='/login' component={Login}/>
                <Route path='/admin' component={Admin}/>
                <Redirect path='/' to='/login'/>
            </Switch>
        </BrowserRouter>
    );
}

export default App;
